package com.generate.plugins;

import lombok.Data;
import lombok.Getter;

import javax.persistence.Column;
import java.util.Date;

@Data
public class BaseEntity {
    /**
     * 主键id
     */
    @Getter(onMethod_ = @Column(name = "id"))
    private Long id;
    /**
     * 创建者编号
     */
    @Getter(onMethod_ = @Column(name = "creator_code"))
    private String creatorCode;
    /**
     * 是否删除
     */
    @Getter(onMethod_ = @Column(name = "is_del"))
    private Boolean isDel;
    /**
     * 创建时间
     */
    @Getter(onMethod_ = @Column(name = "create_date"))
    private Date createDate;
    /**
     * 更新者编号
     */
    @Getter(onMethod_ = @Column(name = "updater_code"))
    private String updaterCode;
    /**
     * 更新时间
     */
    @Getter(onMethod_ = @Column(name = "update_time"))
    private Date updateTime;
}
